<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>login</title>
    <link rel="stylesheet" href="css/index.css">
        <script type="text/javascript" language="JavaScript">
        function customer_login(){

            //--------------------------action--------------//
            document.form_login.action= "login";

            document.form_login.submit();
            return   true;
        }

        function boss_login(){

            //--------------------------action--------------//
            document.form_login.action= "../boss/bosslogin";

            document.form_login.submit();
            return   true;
        }
    </script>
</head>
<body class="body">
<div class="content2">
    <div class="content-form">
     <form name="form_login" method="post">
      
            <h1 class="content-title">网站登录</h1>
                <div class="content3">
                    <div id="change_margin_1">
                        <input class="user" type="number" name="tel" placeholder="请输入手机号">
                    </div>
                    <div id="change_margin_2">
                        <input class="password" type="password"  name="password" placeholder="请输入密码">
                    </div>
                    <!-- input的value为空时弹出提醒 -->
                    <p id="error_box"></p>
                    <div id="change_margin_3">
                        <input class="content-form-signup" type="submit" value="用户登录" onclick="customer_login()" >
                        <br>
                        <br>
                        <input class="content-form-signup" type="submit" value="商家登录" onclick="boss_login()" >
                    </div>
                </div>
            <div><a class="content-login-link" href="register.html">注册</a></div>
           </form>
    </div>
</div>


</body>
</html>